<?php
if (!defined('WEB_ROOT')) {
	exit;
}

$bannerList    = getBannerList();
$bannersPerCol = 3;
$numBanner     = count($bannerList);
$columnWidth    = "100%";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="20">
<?php 

if ($numCategory > 0) {
	$i = 0;
	for ($i; $bannersPerCol < $numBanner; $i++) {

		
		// we have $url, $image, $name, $price
		extract ($bannerList[$i]);
		echo '</tr>';
		echo "<td width=\"$columnWidth%\" align=\"center\"><a href=\"$url\"><img src=\"$image\" border=\"0\"><br>$name</a></td>\r\n";
		echo '</tr>';

		
	}
	
} else {
?>
	<tr><td width="100%" align="center" valign="center">No banners yet</td></tr>
<?php	
}	
?>
</table>
